package party.loveit.download.listener;

import java.io.File;

/**
 * @author Jerry 2015-10-18
 */
public interface IDListener {
    void onPrepare(String baseUrl);

    void onStart(String fileName, String baseUrl, long fileLength);

    void onProgress(String baseUrl, String speed, long progress);

    void onStop(String baseUrl, long progress);

    void onFinish(String baseUrl, File file);

    void onError(String baseUrl, int status, String error);
}